using foundation;
using foundation.events;

[Model("heart")]
public class HeartModel : BaseModel
{

    public static ClientData client;

    [Evt(EVENT_CONST.SOCKET, "101")]
    public void f_101(EventX eventX)
    {
        var data = (ASObject)eventX.Data;
        client = data["client_data"] as ClientData;
    }


    [Evt(EVENT_CONST.SOCKET, "1")]
    public void f_1(EventX eventX)
    {
        var data = (ASObject)eventX.Data;
        var log = new ASObject();
        DataConvert.CopyProperty(data, client, log);
        DataConvert.DispatchCopyEdit(log, client);
    }
}